import request from "@/utils/request";
interface DoLogin{
    username : string,
    password : string,
    svgKey : string,
    verify : string,
}

// 获取验证码接口
let getCaptcha = () => {
    return request({
        url : "/captcha",
        method : "GET",
    })
}


// 获取登录接口
let doLigin = (data : DoLogin) => {
    return request({
        url : "/doLogin",
        method : "POST",
        data,
    })
}


// 导出
export default {
    getCaptcha,
    doLigin,
}